package com.kb.design.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.kb.design.annotation.FieldMeta;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * (DesignDictData)实体类
 *
 * @author makejava
 * @since 2024-02-23 11:59:31
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("design_daily")
public class DesignDaily extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 410569905145693057L;

    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField(exist = false)
    private Long deptId;
    @TableField(exist = false)
    private String deptName;

    private String tomorrowContent;
    private String todayContent;
    private String yesterdayContent;
    /**
     * 空闲选择
     *
     */
    private Integer freeSelect;

    /**
     * 空闲小时
     *
     */
    private Integer freeTime;
    /** 创建者 */
    @FieldMeta(name = "创建者")
    private String createBy;
    private String createByName;
    private String remark;

    /**
     * 0 查询最新日期
     * 1 查询全部
     */
    @TableField(exist = false)
    private String type;
    @TableField(exist = false)
    private String projectName;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private LocalDate daily;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

}

